#!/usr/bin/python

import re
match = re.match('Hello[ \t]*(.*)world', 'Hello   	 	Python world')
print repr(match.string)
print repr(match.re.pattern)
print match.groups()
print match.group(0)
print match.group(1)

match = re.match("/(.*)/(.*)/(.*)", "/path/to/object")
print(repr(match.string))
print(repr(match.re.pattern))
print(match.groups())
